package ${baseInfo.packageName};

<#list tableClass.importList as fieldType>${"\n"}import ${fieldType};</#list>
import com.fa4j.common.base.model.AbstractCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "${tableClass.remark!}-创建参数")
public class ${baseInfo.fileName} extends AbstractCmd {

<#list tableClass.baseFields as field>
    <#if field.fieldName!='deleted'&&field.fieldName!='createTime'&&field.fieldName!='updateTime'&&field.fieldName!='operatorId'>
        <#if !field.nullable>
            <#if field.jdbcType=="VARCHAR">
    @NotBlank
            <#else>
    @NotNull
            </#if>
        </#if>
        <#if field.jdbcType=="VARCHAR">
    @Size(max = ${field.columnLength?c})
        </#if>
    @Schema(description = "${field.remark!}")
    private ${field.shortTypeName} ${field.fieldName};

    </#if>
</#list>


}
